From: Christoph Wolk Date: Mon, 19 May 2025 06:05:07 +0000 (+0200) Subject: [PATCH] controls/PageRow: don't announce StackView over screen readers X-Git-Tag: archive/raspbian/6.13.0-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b367c77b4315256aaae4567034f2e52363c573ad;p=kf6-kirigami.git [PATCH] controls/PageRow: don't announce StackView over screen readers PageRow has an internal StackView; it defaults to the Accessible.role LayeredPane, which is by default announced by screen readers (or at least by orca). This may be correct in some circumstances, but not here: it's a purely internal object that has no user relevance; hearing LAYERED PANE ZERO ITEMS every time a page in a PageRow is entered is confusing to screen reader users, they have typically no idea what it means, and if they do there is little they can do with this information. (I guess it indicates whether a modal layer is open, but in practice I couldn't seem to actually get this to work, and it seems better to indicate when a modal layer is open, not every single time when there isn't one - and that is a separate issue.) Instead we can set its role explicitly to Pane, that marks it as a filler in Accerciser and orca does not read it out every time. Gbp-Pq: Name upstream_481ee938_controls-PageRow-don-t-announce-StackView-over-screen-readers.patch --- diff --git a/src/controls/PageRow.qml b/src/controls/PageRow.qml index 6f83779..d2903ef 100644 --- a/src/controls/PageRow.qml +++ b/src/controls/PageRow.qml @@ -785,6 +785,7 @@ QT.Control { QQC2.StackView { id: layersStack z: 99 + Accessible.role: Accessible.Pane anchors { left: parent.left top: layerToolbarStack.bottom